<?php
include_once('common/header.php');			
$objBlog 	= new Blog();
$strValue	= '';
$intTotal	= 0;
$intLimit	= BLOG_LIMIT;
$intType	= $objRequest->getParam('sort', 1);
$intPage	= $objRequest->getParam('page', 1);
$intOffset	= ($intPage - 1) * $intLimit;
$arrNews	= $objBlog->getAll($AppUI->id,1,'',$intOffset,$intLimit,$intTotal);
$arrTop		= $objBlog->getAll($AppUI->id,3,'',0,$intLimit);
$arrFeature	= $objBlog->getAll($AppUI->id,4,'',0,$intLimit);
$this->view->arrFeature	= $arrFeature;
$this->view->arrTop		= $arrTop;
$this->view->arrResult	= $arrNews;
$this->view->intTotal	= $intTotal;
$this->view->intOffset	= $intOff;
$this->view->intLimit	= $intLimit;	
include_once('blog/box-friend.php');
?>